package cn.itlaobing.servlet;

import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import cn.itlaobing.annotation.AnnotationMapping;


/**
 * @author Administrator
 *
 */

/** 
 * ClassName: StudentServlet <br/> 
 * Function:实现一个servlet进行多个功能的实现 <br/> 
 * date: 2017年10月31日 下午8:43:27 <br/> 
 * 
 * @author 苏积钰 
 * @version  
 * @since JDK 1.8 
 */

@WebServlet(loadOnStartup= 1,value="/hello/*" )
public class StudentServlet extends BaseServlet {
	
	@AnnotationMapping("/create")
	protected void create(HttpServletRequest req, HttpServletResponse resp)  {
		System.out.println(">>>>>>>>>>>>create");
	}
	@AnnotationMapping("/query")
	protected void query(HttpServletRequest req, HttpServletResponse resp)  {
		System.out.println(">>>>>>>>>>>>query");
	}
	@AnnotationMapping("/delete")
	protected void delete(HttpServletRequest req, HttpServletResponse resp)  {
		System.out.println(">>>>>>>>>>>>delete");
	}
	@AnnotationMapping("/add")
	protected void add(HttpServletRequest req, HttpServletResponse resp)  {
		System.out.println(">>>>>>>>>>>>add");
	}
}
